<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title></title>
    </head>
    <body>
       <div align="right"> <a href="./deconnexion.php">Déconnexion</a></div>
       <link rel="stylesheet" href="./formCSS.css">
       <center>
           <br><br><br>
        <fieldset style="border:solid 1px black; padding:20px; width:370px; color:midnightblue; "><legend>modification données manager</legend>
              <table>
         <form method="POST">
             <?php 
             
           include './Administrateur.php';
             $db = mysql_connect("localhost","root","root");
         mysql_selectdb("projet2", $db);
         
         $a1 = new Administrateur();
         $a1->PassageMan();
        
        $sql = mysql_query("select man from modification where id='man'");
         $man = mysql_fetch_array($sql);
         $var = $man['man'];
         $sql1 = mysql_query("select * from manager where login='$var'");
         $row1 = mysql_fetch_array($sql1);
         ?>
         <tr><td>   login</td><td><input type="text" name="loginman" value="<?php echo $row1['login']; ?>"> </td></tr>
          <tr><td>   mot de passe</td><td><input type="password" name="motdepasseman" value="<?php echo $row1['motdepasse']; ?>"> </td></tr>
         <tr><td>    nom</td><td><input type="text" name="nomman" value="<?php echo $row1['nom']; ?>"></td></tr>
        <tr><td>     prenom</td><td><input type="text" name="prenomman" value="<?php echo $row1['prenom']; ?>"></td></tr>
       <tr><td>      mail</td><td><input type="text" name="mailman" value="<?php echo $row1['email']; ?>"></td></tr>
              </table>
        </fieldset>
           <fieldset style="border:solid 1px black; padding:20px; width:370px; color:midnightblue; ">
               <table>
       <tr><td>       services</td><td></table><table><tr><td><input type="checkbox" name="services[]" value="service 1"> serivce 1</td></tr></table>
               <table>     <tr><td>           </td><td>   <input type="checkbox" name="services[]" value="service 2"> service 2</td></tr></table>
       <table>  <tr><td>          </td><td>     <input type="checkbox" name="services[]" value="service 3"> service 3</td></tr></table>
          <tr><td>  </td><td> <br><br> <input type="submit" value="modifier"></td></tr>
            
        </form>
              
        </fieldset>
        <?php
       
        $a  = new Administrateur();
        $a->ModifierManger();
        ?>
       </center>
    </body>
</html>
